
#from PyQt5 import QtCore, QtGui , QtQml, QtQuick

from PyQt5.QtCore import QCoreApplication,QUrl,QObject
from PyQt5.QtGui import QGuiApplication
from PyQt5.QtQml import QQmlApplicationEngine
from PyQt5.QtQuick import QQuickView
from PyQt5.QtWidgets import QLabel


app = QGuiApplication([])

view = QQuickView()

view.setSource(QUrl("resource/qml/welcome.qml"))
root_obj =  view.rootObject()
print(root_obj)
view.show()

label = root_obj.findChild(QObject, 'textLabel')
print("obj ->%s"%label)
label.setProperty('text',"hello?\nAre you busy?")







app.exec_()